package com.mrdeer.user.api.dto.authorization;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author ：xie jianchu
 * @date ：Created in 2020/9/7 0007 14:34
 */
@Data
@ApiModel(value = "RoleDTO", description = "角色")
public class RoleDTO implements Serializable {
    private static final long serialVersionUID = 8365998566109920950L;

    @ApiModelProperty("角色ID")
    private Long id;

    @ApiModelProperty("角色名称")
    private String name;

    @ApiModelProperty("角色编码")
    private String code;

    @ApiModelProperty("角色所属租户")
    private String tenantId;

    @ApiModelProperty("角色包含权限列表")
    private List<String> privilegeCodes = new ArrayList<>();
}
